package com.mpyy.pojo;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import lombok.*;
/**
 * inventory_desc 实体类
 * Wed Feb 23 09:47:17 CST 2022 tangneng
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class InventoryDesc{

	private String inveDescId;

	private String proId;

	private String inveDescName;

	private String inveDescType;

	private String inveDescUnit;

	private String inveDescSize;

	private String inveDescPostil;

	private String inveDescManufacturer;

	private String inveDescBatchNum;

	private Date inveDescStartDate;

	private Date inveDescValidityDate;

	private Integer inveDescInventoryNum;

	private Double inveDescPrice;

	private String inveDescDepot;

	private Integer inveDescProState;

	private String inveDescComment;

	private String null1;

	private String null2;

	/*供货商*/
	private String supId;


	/*库存总值*/
	private Double inveTotalPrice;

	/*销售总数*/
	private Integer inveTotalSaleNum;

	/*预设售价*/
	private Double invePresetPrice;

	/*售价总值*/
	private Double inveSaleTotalPrice;

	/*进货日期*/
	private Date purStoDate;

	/* 分页 */
	private Paging paging;

	/*开始日期*/
	private Date startChangeDate;

	/*截至日期*/
	private Date stopChangeDate;

	/*统计时间*/
	private Date statisticalTime;

	/*库存下限*/
	private Integer proStockLower;

	/*商品编号与名称*/
	private String proIdAndproName;

	/*调拨数量*/
	private Integer inveDescNum;

	public void setStartChangeDate(String startChangeDate) throws ParseException {
		this.startChangeDate = new SimpleDateFormat("yyyy-MM-dd").parse(startChangeDate);
	}

	public void setStopChangeDate(String stopChangeDate) throws ParseException {
		this.stopChangeDate = new SimpleDateFormat("yyyy-MM-dd").parse(stopChangeDate);
	}

	public void setStatisticalTime(String statisticalTime) throws ParseException {
		this.statisticalTime = new SimpleDateFormat("yyyy-MM-dd").parse(statisticalTime);
	}
}